<?php
    /**
     * Created by PhpStorm.
     * User: Feixiang
     * Date: 2017/8/7
     * Time: 12:23
     * 公用的方法
     * @param       $status
     * @param       $message
     * @param array $data
     */
    
    function show($status,$message,$data=array()){
        $reuslt = array(
            'status'=> $status,
            'message'=> $message,
            'data'=>$data,
            
        );
        exit(json_encode($reuslt));
    }
    function getMd5Password($password){
        return md5($password.C('MD5_PRE'));
    }